package com.meals.system.dao;

import com.meals.system.entity.WhitesMealOrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description:
 * Parm:
 * return:
 * Author: Chen
 * Date: 2021/12/14
 */
@Mapper
public interface WhitesMealOrderItemMapper {


    WhitesMealOrderItem selectByPrimaryKey(Long orderItemId);
    /**
     * 根据orderId获取oderItem的列表
     * @param orderId
     * @return
     */
    List<WhitesMealOrderItem> selectByOrderId(Long orderId);

    /**
     * 根据orderId列表获取oderItem的列表
     * @param orderIds
     * @return
     */
    List<WhitesMealOrderItem> selectByOrderIds(@Param("orderIds") List<Long> orderIds);


    int insert(WhitesMealOrderItem record);

    int insertSelective(WhitesMealOrderItem record);

    int insertBatch(@Param("orderItems") List<WhitesMealOrderItem> orderItems);

    int deleteByPrimaryKey(Long orderItemId);

    int updateByPrimaryKey(WhitesMealOrderItem record);

    int updateByPrimaryKeySelective(WhitesMealOrderItem record);
}
